
#include "OccupyDecipline.h"

OccupyDecipline::OccupyDecipline(void)
{
}

OccupyDecipline::~OccupyDecipline(void)
{
}

int const OccupyDecipline::useDecipline(Matrix<int> const& data) const
{
	int result(0);
	for (size_t i = 0; i != data.size(); ++i)
	{
		result +=data.at(i);
	}
	result -=data.at(4);
	if (3 == result)
	{
		return 1;
	}
	return 0;
}